import request from '@/utils/request'

// 查询出库列表
export function getInventoryPage(data) {
  return request({
    url: '/inventory/queryPage',
    method: 'post',
    data
  })
}

// 查询出库合同列表
export function getContractList(type) {
  return request({
    url: `/inventory/outBoundCon?contractType=${type}`,
    method: 'get',
  })
}

// 查询出库记录详情
export function getOutBoundDetail(id) {
  return request({
    url: `/inventory/${id}`,
    method: 'get',
  })
}

// 退货列表
export function queryReturnGoodsPage(data) {
  return request({
    url: '/returnGoods/page',
    method: 'post',
    data
  })
}
